feat: Add signature_verification_result to schnorr stdlib#173
Conversation
4e06695 to
a98abe2
Compare
zac-williamson
left a comment
There was a problem hiding this comment.
I can see how it would be useful to have a verification method that does not assert but instead returns a boolean. It gives more flexibility to developers and makes it easier to evaluate branching paths where one wishes to conditionally verify a signature.
We have a lot of tests and circuit code that relies on the signature verification algorithm to produce unsatisfiable constraints if the signature is invalid.
I think the fastest path forward is to create a new independent method that returns a bool_t, which does not interfere with existing tests.
a98abe2 to
cd14941
Compare
|
Rebased and resolved conflicts with |
signature_verification_result to schnorr stdlib
|
@zac-williamson looks good? Merging is blocked until you approve 😇 |
Zac is with me now and he say it's ok.
…without changed. So we need verify_signature to return a boolean indicating whether the signature was valid or not. It should in fact return a bool_ct.
ffa0396 to
6f3830f
Compare
|
^ rebase |
…tocol/barretenberg#173) * Add more flexible Schnorr verification methods --------- Co-authored-by: kevaundray <kevtheappdev@gmail.com> Co-authored-by: codygunton <codygunton@gmail.com>
…tocol/barretenberg#173) * Add more flexible Schnorr verification methods --------- Co-authored-by: kevaundray <kevtheappdev@gmail.com> Co-authored-by: codygunton <codygunton@gmail.com>
Description
Noir needs
verify_signaturein the schnorr stdlib to return abool_tindicating whether the signature was valid or not.Currently a draft because I tried to update @kevaundray's code to add a constraint but I have no idea if I did it correctly.
Checklist:
/markdown/specshave been updated.@briefdescribing the intended functionality.